/*
 * XML Type:  MutualFundInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.MutualFundInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML MutualFundInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class MutualFundInfoImpl extends net.ofx.types.x2003.x04.impl.AbstractSecurityInfoImpl implements net.ofx.types.x2003.x04.MutualFundInfo
{
    
    public MutualFundInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MFTYPE$0 = 
        new javax.xml.namespace.QName("", "MFTYPE");
    private static final javax.xml.namespace.QName YIELD$2 = 
        new javax.xml.namespace.QName("", "YIELD");
    private static final javax.xml.namespace.QName DTYIELDASOF$4 = 
        new javax.xml.namespace.QName("", "DTYIELDASOF");
    private static final javax.xml.namespace.QName MFASSETCLASS$6 = 
        new javax.xml.namespace.QName("", "MFASSETCLASS");
    private static final javax.xml.namespace.QName FIMFASSETCLASS$8 = 
        new javax.xml.namespace.QName("", "FIMFASSETCLASS");
    
    
    /**
     * Gets the "MFTYPE" element
     */
    public net.ofx.types.x2003.x04.MutualFundTypeEnum.Enum getMFTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MFTYPE$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.MutualFundTypeEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "MFTYPE" element
     */
    public net.ofx.types.x2003.x04.MutualFundTypeEnum xgetMFTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MutualFundTypeEnum target = null;
            target = (net.ofx.types.x2003.x04.MutualFundTypeEnum)get_store().find_element_user(MFTYPE$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "MFTYPE" element
     */
    public boolean isSetMFTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MFTYPE$0) != 0;
        }
    }
    
    /**
     * Sets the "MFTYPE" element
     */
    public void setMFTYPE(net.ofx.types.x2003.x04.MutualFundTypeEnum.Enum mftype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MFTYPE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MFTYPE$0);
            }
            target.setEnumValue(mftype);
        }
    }
    
    /**
     * Sets (as xml) the "MFTYPE" element
     */
    public void xsetMFTYPE(net.ofx.types.x2003.x04.MutualFundTypeEnum mftype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MutualFundTypeEnum target = null;
            target = (net.ofx.types.x2003.x04.MutualFundTypeEnum)get_store().find_element_user(MFTYPE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MutualFundTypeEnum)get_store().add_element_user(MFTYPE$0);
            }
            target.set(mftype);
        }
    }
    
    /**
     * Unsets the "MFTYPE" element
     */
    public void unsetMFTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MFTYPE$0, 0);
        }
    }
    
    /**
     * Gets the "YIELD" element
     */
    public java.lang.String getYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(YIELD$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "YIELD" element
     */
    public net.ofx.types.x2003.x04.RateType xgetYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(YIELD$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "YIELD" element
     */
    public boolean isSetYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(YIELD$2) != 0;
        }
    }
    
    /**
     * Sets the "YIELD" element
     */
    public void setYIELD(java.lang.String yield)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(YIELD$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(YIELD$2);
            }
            target.setStringValue(yield);
        }
    }
    
    /**
     * Sets (as xml) the "YIELD" element
     */
    public void xsetYIELD(net.ofx.types.x2003.x04.RateType yield)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(YIELD$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RateType)get_store().add_element_user(YIELD$2);
            }
            target.set(yield);
        }
    }
    
    /**
     * Unsets the "YIELD" element
     */
    public void unsetYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(YIELD$2, 0);
        }
    }
    
    /**
     * Gets the "DTYIELDASOF" element
     */
    public java.lang.String getDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTYIELDASOF$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTYIELDASOF" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTYIELDASOF$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTYIELDASOF" element
     */
    public boolean isSetDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTYIELDASOF$4) != 0;
        }
    }
    
    /**
     * Sets the "DTYIELDASOF" element
     */
    public void setDTYIELDASOF(java.lang.String dtyieldasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTYIELDASOF$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTYIELDASOF$4);
            }
            target.setStringValue(dtyieldasof);
        }
    }
    
    /**
     * Sets (as xml) the "DTYIELDASOF" element
     */
    public void xsetDTYIELDASOF(net.ofx.types.x2003.x04.DateTimeType dtyieldasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTYIELDASOF$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTYIELDASOF$4);
            }
            target.set(dtyieldasof);
        }
    }
    
    /**
     * Unsets the "DTYIELDASOF" element
     */
    public void unsetDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTYIELDASOF$4, 0);
        }
    }
    
    /**
     * Gets the "MFASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.MutualFundAssetClass getMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MutualFundAssetClass target = null;
            target = (net.ofx.types.x2003.x04.MutualFundAssetClass)get_store().find_element_user(MFASSETCLASS$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "MFASSETCLASS" element
     */
    public boolean isSetMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MFASSETCLASS$6) != 0;
        }
    }
    
    /**
     * Sets the "MFASSETCLASS" element
     */
    public void setMFASSETCLASS(net.ofx.types.x2003.x04.MutualFundAssetClass mfassetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MutualFundAssetClass target = null;
            target = (net.ofx.types.x2003.x04.MutualFundAssetClass)get_store().find_element_user(MFASSETCLASS$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MutualFundAssetClass)get_store().add_element_user(MFASSETCLASS$6);
            }
            target.set(mfassetclass);
        }
    }
    
    /**
     * Appends and returns a new empty "MFASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.MutualFundAssetClass addNewMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MutualFundAssetClass target = null;
            target = (net.ofx.types.x2003.x04.MutualFundAssetClass)get_store().add_element_user(MFASSETCLASS$6);
            return target;
        }
    }
    
    /**
     * Unsets the "MFASSETCLASS" element
     */
    public void unsetMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MFASSETCLASS$6, 0);
        }
    }
    
    /**
     * Gets the "FIMFASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass getFIMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass)get_store().find_element_user(FIMFASSETCLASS$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "FIMFASSETCLASS" element
     */
    public boolean isSetFIMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FIMFASSETCLASS$8) != 0;
        }
    }
    
    /**
     * Sets the "FIMFASSETCLASS" element
     */
    public void setFIMFASSETCLASS(net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass fimfassetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass)get_store().find_element_user(FIMFASSETCLASS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass)get_store().add_element_user(FIMFASSETCLASS$8);
            }
            target.set(fimfassetclass);
        }
    }
    
    /**
     * Appends and returns a new empty "FIMFASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass addNewFIMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionMutualFundAssetClass)get_store().add_element_user(FIMFASSETCLASS$8);
            return target;
        }
    }
    
    /**
     * Unsets the "FIMFASSETCLASS" element
     */
    public void unsetFIMFASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FIMFASSETCLASS$8, 0);
        }
    }
}
